import request from '@/utils/request'

// 查询借阅申请列表
export function listFileLoanApplication(query) {
  return request({
    url: '/business/fileLoanApplication/list',
    method: 'get',
    params: query
  })
}

// 查询借阅申请详细
export function getFileLoanApplication(id) {
  return request({
    url: '/business/fileLoanApplication/' + id,
    method: 'get'
  })
}

// 新增借阅申请
export function addFileLoanApplication(data) {
  return request({
    url: '/business/fileLoanApplication',
    method: 'post',
    data: data
  })
}

// 修改借阅申请
export function updateFileLoanApplication(data) {
  return request({
    url: '/business/fileLoanApplication',
    method: 'put',
    data: data
  })
}

// 删除借阅申请
export function delFileLoanApplication(id) {
  return request({
    url: '/business/fileLoanApplication/' + id,
    method: 'delete'
  })
}

// 导出借阅申请
export function exportFileLoanApplication(query) {
  return request({
    url: '/business/fileLoanApplication/export',
    method: 'get',
    params: query
  })
}